package com.easycarebn.request.data;

import java.util.ArrayList;

public class DoctorScheduleResponse extends DataItemResponse {
	private String date;
	private ArrayList<TimeItem> items;
	private ArrayList<Navigation> navigation;
	private String showdate;

	public String getShowdate() {
		return showdate;
	}

	public String getDate() {
		return date;
	}

	public ArrayList<TimeItem> getItems() {
		return items;
	}

	public static class TimeItem {
		private String block;
		private String address_name;
		private String status;

		public String getAddress_name() {
		   if(address_name.isEmpty()){
		       return " ";
		   }
			return address_name;
		}

		private int address_id;

		public int getAddress_id() {
			return address_id;
		}

		public String getBlock() {
			return block;
		}

		public String getStatus() {
			return status;
		}
	}

	public static class Navigation {
		private String back;
		private String next;
		private String showbackdate;
		private String shownextdate;
	}
	
	public String shownextdate(){
		if (navigation == null || navigation.isEmpty()) {
			return null;
		}
		return navigation.get(0).shownextdate;
	}
	
	public String showbackdate(){
		if (navigation == null || navigation.isEmpty()) {
			return null;
		}
		return navigation.get(0).showbackdate;
	}

	public String getBack() {
		if (navigation == null || navigation.isEmpty()) {
			return null;
		}
		return navigation.get(0).back;
	}

	public String getNext() {
		if (navigation == null || navigation.isEmpty()) {
			return null;
		}
		return navigation.get(0).next;
	}
}
